#!/bin/bash
for i in {1..3}
do
    ps -fe|grep etm |grep -v grep
    if [ $? -ne 0 ]
    then
        echo not found
    else
        exit
    fi
    sleep 2s
done
cd /home/linaro/work/edge/
mv bin bin_old_back
mv bin_back bin
mv bin_old_back bin_back
